package com.wp.pojo;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 权限表
 * */
@Data
@Accessors(chain = true)
public class Right implements Serializable {

    private static final long serialVersionUID = -778896034658458562L;
    //表主键
    private Integer id;
    //菜单名
    private String name;
    //前端跳转路径
    private String path;
    //定义父级菜单
    private Integer parentId;
    //菜单等级
    private Integer level;
    //
    private Date created;
    private Date updated;

    //设置一个不在数据库的字段----用于存储一对多关系
    private List<Right> children;
}
